﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GenerarComprobantesEmpleado.aspx.cs" Inherits="GenerarComprobantesEmpleado" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register src="UCFiltroRPT.ascx" tagname="UCFiltroRPT" tagprefix="uc2" %>
<%@ Register src="MenuSuperior.ascx" tagname="MenuSuperior" tagprefix="uc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dxp" %>

<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dxrp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Generar comprobantes Entrada / Salida</title>
    <link href="App_Themes/Aqua/default.css" rel="stylesheet" type="text/css" />
    <style type="text/css">

        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 310px;
        }
        .style4
        {
            height: 23px;
        }
        .style5
        {
            width: 310px;
            height: 23px;
        }
        .style7
        {
            height: 26px;
        }
        .style8
        {
            width: 310px;
            height: 26px;
        }
        .style9
        {
            background-color: #C1DBFA;
            color: #333333;
            font-weight: bold;
            text-align: center;
            height: 18px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <uc1:MenuSuperior ID="MenuSuperior1" runat="server" />
        <br />
    
    </div>
                   
                
    </div>
<table align="center" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
    <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        HeaderText="Generar comprobantes de entrada / salida " Width="200px" HorizontalAlign="NotSet">
        <PanelCollection>
<dxp:PanelContent runat="server" SupportsDisabledAttribute="True">
    
                <table class="style2">
                    <tr>
                        <td nowrap="nowrap" style="text-align: right">
                            Desde</td>
                        <td class="style3">
                            <asp:TextBox ID="txtFechaIni" runat="server" CssClass="CeldaBlanca" 
                                MaxLength="10" TabIndex="1" ToolTip="Fecha desde" Width="80px"></asp:TextBox>
                            <cc1:CalendarExtender ID="txtFechaIni_CalendarExtender" runat="server" 
                                Enabled="True" Format="dd/MM/yyyy" TargetControlID="txtFechaIni">
                            </cc1:CalendarExtender>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtFechaIni" Display="Dynamic" 
                                ErrorMessage="Debe ingresar un valor" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style7" nowrap="nowrap" style="text-align: right">
                            Hasta</td>
                        <td class="style8">
                            <asp:TextBox ID="txtFechaFin" runat="server" CssClass="CeldaBlanca" 
                                MaxLength="10" TabIndex="2" ToolTip="Fecha hasta" Width="80px"></asp:TextBox>
                            <cc1:CalendarExtender ID="txtFechaFin_CalendarExtender" runat="server" 
                                Enabled="True" Format="dd/MM/yyyy" TargetControlID="txtFechaFin">
                            </cc1:CalendarExtender>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtFechaFin" Display="Dynamic" 
                                ErrorMessage="Debe ingresar un valor" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToCompare="txtFechaIni" ControlToValidate="txtFechaFin" 
                                Display="Dynamic" ErrorMessage="CompareValidator" ForeColor="Red" 
                                Operator="GreaterThanEqual" Type="Date">Fecha Hasta debe ser mayor que fecha Desde</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4" nowrap="nowrap" style="text-align: right">
                            Empleado</td>
                        <td class="style5">
                            <asp:DropDownList ID="ddlEmpleados" runat="server" 
                                DataSourceID="dsEmpleadosActivos" DataTextField="LegajoApellidoYNombre" 
                                DataValueField="NumeroLegajo">
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="dsEmpleadosActivos" runat="server" 
                                SelectMethod="ObtenerTodasLasPersonasActivas" 
                                TypeName="RC.ControlAcceso.ObjetosNegocio.CA2Personal">
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap" style="text-align: right">
                            &nbsp;</td>
                        <td align="left">
                            <dxe:ASPxButton ID="btnGenerarComprobantes" runat="server" 
                                OnClick="btnGenerarComprobantes_Click" Text="Generar comprobantes">
                            </dxe:ASPxButton>
                            <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                            <br />
                        </td>
                    </tr>
                </table>
                <br />
            
            </dxp:PanelContent>
</PanelCollection>
    </dxrp:ASPxRoundPanel>
    </td>
        </tr>
    </table>
    </form>
</body>
</html>
